package com.neusoft.neu24.nep.role.controller;

import com.neusoft.neu24.nep.entity.ComonResult;
import com.neusoft.neu24.nep.role.entity.Sysnode;
import com.neusoft.neu24.nep.role.service.ISysnodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 系统功能节点树 前端控制器
 * </p>
 *
 * @author 段静迪，duanjingdi@163.com
 * @since 2024-06-06
 */
@RestController
@RequestMapping("/sysnode")
@CrossOrigin("*")
public class SysnodeController {

    @Autowired
    ISysnodeService  service;

    @GetMapping("select/all/tree")
    public ComonResult<Sysnode> selectAllByTree(){
        return   service.selectAllByTree();
    }

}
